<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@include file="../../base.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<!--Enum数据字典，动态加载-->
<sys:genericTag4o id="_enumData" methodName="getEnumData"
                  className="com.tmptSource.controller.taglib.A1EnumTag"/>
<sys:genericTag4o id="_enumColumnSelfData" methodName="getEnumColumnSelfData"
                  className="com.tmptSource.controller.taglib.OwRegisterDataTag"/>

<!--页面上查询列的值，动态加载，sql语句读数据库配置而来-->
<sys:genericTag4o id="_selectOptions4owBaseCommiteeId" methodName="select4owBaseCommiteeId"
				  className="com.tmptSource.controller.taglib.OwBaseRoadTag"/>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>

<title>Add_Edit</title>

<link href="${path}/admin123/css/main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="${path}/js/jquery/easyui1.5/themes/bootstrap/easyui.css"/>
<link rel="stylesheet" type="text/css" href="${path}/js/jquery/easyui1.5/themes/icon.css"/>
<script type="text/javascript" src="${path}/js/jquery-1.8.0.min.js"></script>
<script src="${path}/js/jquery/easyui1.5/jquery.easyui.min.js"></script>
<script src="${path}/js/jquery/easyui1.5/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="${path}/js/jquery.select.js"></script>
<script type="text/javascript" src="${path}/js/myjs/myutils.js?random=<%=Math.random()%>"></script>
<script type="text/javascript" src="data.js?random=<%=Math.random()%>"></script>

<style type="text/css">
	#layoutui { margin:5px;}
	#layoutui ol {  margin: 0;padding:5px;list-style: none;}
	#layoutui ol li{
		margin: 1px; padding-left:5px; padding-top:4px;
		float:left;
		width:300px; height:30px;
		background-color: #efefef;
        border: 1px solid #ddd;
	}
	#layoutui label{width:100px;float:left; border-bottom:0px solid #fff;}
	.clear_div{clear:both;}
</style>
<script type="text/javascript">
	var _path = '/zpmng/';
	var _primaryKey='id';
	var _isdialog4AddDialog = '1';

	//Add dialog 中combobox 选择时，看看哪些字段不用输入，直接隐藏了
	var _columnCombobox4AddArray = new Array();
	var _columnCombobox4AddJsonArray = new Array();

	//row data
	var _parameter1_iframedialog = ${paramValues.parameter1_iframedialog[0]};
	/*var _parameter2_iframedialog = ${paramValues.parameter2_iframedialog[0]};
	var _parameter3_iframedialog = ${paramValues.parameter3_iframedialog[0]};*/
</script>
<script type="text/javascript" src="../utils/add_edit.js?random=<%=Math.random()%>"></script>

</head>
<body class="font14">

	<form id="form_add" method="post">
		<input type="hidden" id="id" name="id"/>
        <div id="layoutui">
			<ol>
				<li id="_register_data_number_line" class="text"  title=""
						>
					<label >登记数据编号</label>
					<input class="easyui-textbox" name="registerDataNumber" id="registerDataNumber4Add"
						   data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<li id="_ow_use_type_line" class="text"  title=""
					style="position: relative;">
					<label >使用类型</label>
					<input class="easyui-combobox" name="owUseType" id="owUseType4Add"
						data-options={"valueField":"keyName","textField":"valueName","editable":false}  />
					<script type="text/javascript">
						//动态通过数据字典取值
                        _columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_enumData.OwUseType4addDialog}';
                        _columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'owUseType4Add';
					</script>
				</li>
				<%--<li id="_name_line" class="text"  title=""
					style="position: relative;">
					<label >标题</label>
					<input class="easyui-textbox" name="name" id="name4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>--%>
				<li id="_cmpny_legal_man_line" class="text"  title=""
					>
					<label >法人</label>
					<input class="easyui-textbox" name="cmpnyLegalMan" id="cmpnyLegalMan4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<li id="_cmpny_legal_phone_line" class="text"  title=""
					>
					<label >法人联系方式</label>
					<input class="easyui-textbox" name="cmpnyLegalPhone" id="cmpnyLegalPhone4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<li id="_cmpny_principal_man_line" class="text"  title=""
					style="position: relative;">
					<label >负责人</label>
					<input class="easyui-textbox" name="cmpnyPrincipalMan" id="cmpnyPrincipalMan4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<li id="_cmpny_principal_phone_line" class="text"  title=""
					>
					<label >负责人联系方式</label>
					<input class="easyui-textbox" name="cmpnyPrincipalPhone" id="cmpnyPrincipalPhone4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<li id="_cmpny_register_name_line" class="text"  title=""
					>
					<label >注册名称</label>
					<input class="easyui-textbox" name="cmpnyRegisterName" id="cmpnyRegisterName4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<li id="_cmpny_shop_name_line" class="text"  title=""
					>
					<label >店铺名称</label>
					<input class="easyui-textbox" name="cmpnyShopName" id="cmpnyShopName4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<li id="_cmpny_business_scope_line" class="text"  title=""
					>
					<label >经营范围</label>
					<input class="easyui-textbox" name="cmpnyBusinessScope" id="cmpnyBusinessScope4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<li id="_ow_cmpny_business_property_line" class="text"  title=""
					>
					<label >经营性质</label>
					<input class="easyui-combobox" name="owCmpnyBusinessProperty" id="owCmpnyBusinessProperty4Add"
						   data-options={"valueField":"keyName","textField":"valueName","editable":false}  />
					<script type="text/javascript">
						//动态通过数据字典取值
						_columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_enumData.OwCmpnyBusinessProperty4addDialog}';
						_columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'owCmpnyBusinessProperty4Add';
					</script>
				</li>
				<li id="_ow_cmpny_business_mode_line" class="text"  title=""
					>
					<label >经营方式</label>
					<input class="easyui-combobox" name="owCmpnyBusinessMode" id="owCmpnyBusinessMode4Add"
						   data-options={"valueField":"keyName","textField":"valueName","editable":false}  />
					<script type="text/javascript">
						//动态通过数据字典取值
						_columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_enumData.OwCmpnyBusinessMode4addDialog}';
						_columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'owCmpnyBusinessMode4Add';
					</script>
				</li>
				<li id="_ow_cmpny_business_area_line" class="text"  title=""
					>
					<label >经营面积</label>
					<input class="easyui-textbox" name="owCmpnyBusinessArea" id="owCmpnyBusinessArea4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<li id="_ow_cmpny_has_license_line" class="text"  title=""
					>
					<label >是否有证照</label>
					<input class="easyui-combobox" name="owCmpnyHasLicense" id="owCmpnyHasLicense4Add"
						   data-options={"valueField":"keyName","textField":"valueName","editable":false}  />
					<script type="text/javascript">
						//动态通过数据字典取值
						_columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_enumData.OwCmpnyHasLicense4addDialog}';
						_columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'owCmpnyHasLicense4Add';
					</script>
				</li>
				<li id="_ow_cmpny_has_contract_line" class="text"  title=""
					>
					<label >是否门责签约</label>
					<input class="easyui-combobox" name="owCmpnyHasContract" id="owCmpnyHasContract4Add"
						   data-options={"valueField":"keyName","textField":"valueName","editable":false}  />
					<script type="text/javascript">
						//动态通过数据字典取值
						_columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_enumData.OwCmpnyHasContract4addDialog}';
						_columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'owCmpnyHasContract4Add';
					</script>
				</li>
				<li id="_ow_register_type_line" class="text"  title=""
					>
					<label >登记类型</label>
					<input class="easyui-combobox" name="owRegisterType" id="owRegisterType4Add"
						data-options={"valueField":"keyName","textField":"valueName","editable":false}  />
					<script type="text/javascript">
						//动态通过数据字典取值
                        _columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_enumData.OwRegisterType4addDialog}';
                        _columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'owRegisterType4Add';

					</script>

				</li>
				<li id="_ow_building_type_line" class="text"  title=""
					>
					<label >建筑类型</label>
					<input class="easyui-combobox" name="owBuildingType" id="owBuildingType4Add"
						data-options={"valueField":"keyName","textField":"valueName","editable":false}  />
					<script type="text/javascript">
						//动态通过数据字典取值
                        _columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_enumData.OwBuildingType4addDialog}';
                        _columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'owBuildingType4Add';

					</script>

				</li>
				<li id="_ow_use_code_line" class="text"  title=""
					>
					<label >使用状况</label>
					<input class="easyui-combobox" name="owUseCode" id="owUseCode4Add"
						data-options={"valueField":"keyName","textField":"valueName","editable":false}  />
					<script type="text/javascript">
						//动态通过数据字典取值
                        _columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_enumData.OwUseCode4addDialog}';
                        _columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'owUseCode4Add';

					</script>

				</li>
				<%--<li id="_base_commitee_id_line" class="text"  title=""
					>
					<label >base_commitee_id</label>
					<input class="easyui-textbox" name="baseCommiteeId" id="baseCommiteeId4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<li id="_base_road_id_line" class="text"  title=""
					>
					<label >base_road_id</label>
					<input class="easyui-textbox" name="baseRoadId" id="baseRoadId4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<li id="_pos_house_number_line" class="text"  title=""
					>
					<label >门牌号</label>
					<input class="easyui-textbox" name="posHouseNumber" id="posHouseNumber4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>--%>

				<li id="_ow_base_commitee_id_line" class="text"  title="">
					<label >所属居委</label>
					<input class="easyui-combobox" name="baseCommiteeId" id="baseCommiteeId4Add"
						   data-options={"valueField":"keyName","textField":"valueName","editable":false}  />
					<script type="text/javascript">
						//动态通过SQL取值
						_columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '${_selectOptions4owBaseCommiteeId.jsonStr4addDialog}';
						_columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'baseCommiteeId4Add';
					</script>
				</li>

				<li id="_pos_desc_line" class="text"  title=""
					>
					<label >地址</label>
					<input class="easyui-textbox" name="posDesc" id="posDesc4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<%--<li id="_pos_lng_line" class="text"  title=""
					>
					<label >经度</label>
					<input class="easyui-textbox" name="posLng" id="posLng4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<li id="_pos_lat_line" class="text"  title=""
					>
					<label >纬度</label>
					<input class="easyui-textbox" name="posLat" id="posLat4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>--%>
				<li id="_remark1_line" class="text"  title=""
					>
					<label >备注</label>
					<input class="easyui-textbox" name="remark1" id="remark14Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<li id="_owner_name_line" class="text"  title=""
					>
					<label >房主姓名</label>
					<input class="easyui-textbox" name="ownerName" id="ownerName4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<li id="_owner_phone_line" class="text"  title=""
					>
					<label >房主联系方式</label>
					<input class="easyui-textbox" name="ownerPhone" id="ownerPhone4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<li id="_user_name_line" class="text"  title=""
					>
					<label >使用者姓名</label>
					<input class="easyui-textbox" name="userName" id="userName4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<li id="_user_phone_line" class="text"  title=""
					>
					<label >使用者联系方式</label>
					<input class="easyui-textbox" name="userPhone" id="userPhone4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />

				</li>
				<%--<li id="_remark2_line" class="text"  title=""
					>
					<label >备注2</label>
					<input class="easyui-textbox" name="remark2" id="remark24Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>--%>
			</ol>
			<div style="clear:both;"></div>

			<!-- 加载图片 -->
			<div id="picMagDiv" style="background-color: #fff; text-align: left;margin-top:10px;">
			</div>

			<script type="text/javascript">
				//加载图片
				var i = 0;
				var len = _parameter1_iframedialog.owPictureMagDtoList.length;
				for(i = 0;i<len;i++){
					var _imgpath = _parameter1_iframedialog.owPictureMagDtoList[i].path;
					var img = $('<img src="'+_imgpath+'" alt="" width="400" style="margin:5px;"/>');
					img.appendTo($("#picMagDiv"));
				}
			</script>


			<!-- 地图 -->
			<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=eX0oWIhkTt7PMIWp8r2t0MussrF2CKSW"></script>
			<script type="text/javascript" src="../../map/js/map_show.js?random=<%=Math.random()%>"></script>
			<div style="width: 600px;height: 300px; margin-left: 10px; margin-top: 5px;" id="allmap"></div>


			<div style="height: 20px;"></div>
		</div>


	</form>

</body>
</html>




